<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.Collection"%>
<%@page import="com.hz.model.Service"%>
<%@page import="com.hz.control.ServiceControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%       
         request.setCharacterEncoding("utf-8");
         Collection<Service> delist = (Collection)session.getAttribute("servelist"); 
         if(ServiceControl.AddServices(delist)){
          
          session.removeAttribute("servelist");
          session.removeAttribute("addactivity");
          session.removeAttribute("addservice");
   %>
    <script language = "javascript">
            if(window.confirm('添加成功，是否继续添加?')){
           window.location.href="addService.jsp";}
           else{
           window.location.href="../../common/activity/activities.jsp";
           }
          </script>
   <%         
         }  else{    
 %>
  <script language = "javascript">
           alert("失败！");
           window.location.href="addService.jsp"
          </script>
          <%} %>
</body>
</html>